package dao;

import org.apache.ibatis.annotations.Param;
import pojo.Student;

import java.util.List;

public interface StudentDao {

    // 定义行为  crud
    // 查询用户
    List<Student> findAll(@Param("name") String name, @Param("pass") String pass, @Param("offset") int offset, @Param("pageSize") int pageSize);
    List<Student> findAll2(@Param("Student") Student Student, @Param("offset") int offset, @Param("pageSize") int pageSize);


    int deleteStudentById(int id);

    int addStudent(Student s);

    Student findStudentById(int id);

    int updateStudent(Student s);

    int count(Student s);

    int login(Student s);
}
